package main

import (
	"oa-rest/common"
	"oa-rest/config"
	"oa-rest/models/sharefile"

	"github.com/sirupsen/logrus"
)

func main() {
	config.InitEnv()
	db, err := common.ConnectDb()
	if err != nil {
		logrus.Fatal(err)
	}
	defer db.Close()

	err = db.Sync2(new(sharefile.ShareFile))
	if err != nil {
		logrus.Fatal(err)
	}
}
